/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dorian.atomicuml.dao.interfaces;

import com.dorian.atomicuml.orm.DiagrammsProjects;
import java.util.List;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author cedric.creusot
 */
@Transactional(propagation= Propagation.REQUIRED)
public interface DiagrammsProjectsManager {
    public boolean addDiagramms(int projectId, int diagrammsId);
    public boolean addDiagramms(String projectTitle, int diagrammsId);
    public boolean deleteDiagramms(int projectId, int diagrammsId);
    public boolean deleteDiagramms(String projectTitle, int diagrammsId);
    public List<DiagrammsProjects> getDiagrammsProject(int projectId);
    public List<DiagrammsProjects> getDiagrammsProject(String projectTitle);
    public boolean isDiagrammsPartOfTheProject(int projectId, int diagId);
}
